package com.cm.caseManagement.service.impl;

import com.cm.caseManagement.dao.CmSysOperationLogMapper;
import com.cm.caseManagement.pojo.entity.CmSysOperationLog;
import com.cm.caseManagement.service.ICmSysOperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 操作日志Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Service
public class CmSysOperationLogServiceImpl implements ICmSysOperationLogService
{
    @Autowired
    private CmSysOperationLogMapper cmSysOperationLogMapper;

    /**
     * 查询操作日志
     *
     * @param id 操作日志主键
     * @return 操作日志
     */
    @Override
    public CmSysOperationLog selectCmSysOperationLogById(Long id)
    {
        return cmSysOperationLogMapper.selectCmSysOperationLogById(id);
    }

    /**
     * 查询操作日志列表
     *
     * @param cmSysOperationLog 操作日志
     * @return 操作日志
     */
    @Override
    public List<CmSysOperationLog> selectCmSysOperationLogList(CmSysOperationLog cmSysOperationLog)
    {
        return cmSysOperationLogMapper.selectCmSysOperationLogList(cmSysOperationLog);
    }

    /**
     * 新增操作日志
     *
     * @param cmSysOperationLog 操作日志
     * @return 结果
     */
    @Override
    public int insertCmSysOperationLog(CmSysOperationLog cmSysOperationLog)
    {
        return cmSysOperationLogMapper.insertCmSysOperationLog(cmSysOperationLog);
    }

    /**
     * 修改操作日志
     *
     * @param cmSysOperationLog 操作日志
     * @return 结果
     */
    @Override
    public int updateCmSysOperationLog(CmSysOperationLog cmSysOperationLog)
    {
        return cmSysOperationLogMapper.updateCmSysOperationLog(cmSysOperationLog);
    }

    /**
     * 批量删除操作日志
     *
     * @param ids 需要删除的操作日志主键
     * @return 结果
     */
    @Override
    public int deleteCmSysOperationLogByIds(Long[] ids)
    {
        return cmSysOperationLogMapper.deleteCmSysOperationLogByIds(ids);
    }

    /**
     * 删除操作日志信息
     *
     * @param id 操作日志主键
     * @return 结果
     */
    @Override
    public int deleteCmSysOperationLogById(Long id)
    {
        return cmSysOperationLogMapper.deleteCmSysOperationLogById(id);
    }
}
